<!DOCTYPE html>
<html>
   <head>
      <title>中骏森驰薪资查询</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0 Access-Control-Allow-Origin">
      <!-- 引入 Bootstrap -->
      <!--<link href="<?=base_url('html/bootstrap_v3/css/bootstrap.css')?>" rel="stylesheet">-->
      <link href="<?=  base_url('/html/bootstrap_v3/css/bootstrap.css')?>" rel="stylesheet">
      <link href="<?=base_url('html/bootstrap_v3/datepicker/css/bootstrap-datetimepicker.min.css')?>" rel="stylesheet">
      <script src="<?=base_url('html/js/jquery-1.8.3.min.js')?>"></script>
      <script src="<?=base_url('html/bootstrap_v3/js/bootstrap.min.js')?>"></script>
      <script src="<?=base_url('html/bootstrap_v3/datepicker/js/bootstrap-datetimepicker.js')?>"></script>
      <script src="<?=base_url('html/bootstrap_v3/datepicker/js/locales/bootstrap-datetimepicker.zh-CN.js')?>"></script>
      <script>
      $('.goDate').datetimepicker({
        language: 'zh-CN',
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1
      });
      </script>
      
      <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
      <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
      <!--[if lt IE 9]>
         <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
         <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
      <![endif]-->
   </head>
   <body>
      <div class="container">
      <form action="" class="form-horizontal" role="form">
        <fieldset>
          <legend class="text-center" style="font-weight:bold;font-size:2em;">
            工资信息
          </legend>
            <div class="panel-group" id="accordion">
                <?php foreach ($data as $value):?>
                <div class="panel panel-default">
                  <div class="panel-heading">
                    <h4 class="panel-title">
                      <a data-toggle="collapse" data-parent="#accordion" 
                         href="#<?=$value['href']?>">
                        <?=$value['date_show']?>工资信息
                      </a>
                    </h4>
                  </div>
                  <div id="<?=$value['href']?>" class="panel-collapse collapse">
                    <div class="panel-body">
                        <?php if(!isset($value['FID'])):?>
                        <b>数据暂缺！</b>
                        <?php else:?>  
                            <table class="table  table-bordered">
                                <thead>
                                   <tr>
                                      <th>项目明细</th>
                                      <th>项目金额</th>
                                   </tr>
                                </thead>
                                <tbody>
                                   <tr class="active">
                                      <td>姓名</td>
                                      <td><?=$value['A0101']?></td>
                                   </tr>
                                   <tr class="success">
                                      <td>月工资</td>
                                      <?php if(isset($value['C2115'])):?>
                                            <td><?=$value['C2115']?></td>
                                      <?php else:?>
                                            <td></td>
                                      <?php endif;?>
                                      
                                   </tr>
                                   <tr  class="warning">
                                      <td>考核奖罚</td>
                                      <td><?=$value['C21192']?></td>
                                   </tr>
                                   <tr  class="active">
                                      <td>加班</td>
                                      <td><?=$value['C2117']?></td>
                                   </tr>
                                   <tr  class="danger">
                                      <td>其他津贴</td>
                                      <td><?=$value['C21193']?></td>
                                   </tr>
                                   
                                   <tr class="active">
                                      <td>住房补贴</td>
                                      <td><?=$value['C2119']?></td>
                                   </tr>
                                   <tr class="success">
                                      <td>缺勤应扣工资</td>
                                      <td><?=$value['C2199']?></td>
                                   </tr>
                                   <tr  class="warning">
                                      <td>事假应扣工资</td>
                                      <td><?=$value['C2116']?></td>
                                   </tr>
                                   <tr  class="danger">
                                      <td>病假应扣工资</td>
                                      <td><?=$value['C2122']?></td>
                                   </tr>
                                   <tr  class="danger">
                                      <td>工资总额</td>
                                      <td><?=$value['C21190']?></td>
                                   </tr>
                                   <tr class="active">
                                      <td>养老保险</td>
                                      <td><?=$value['C21115']?></td>
                                   </tr>
                                   <tr class="success">
                                      <td>医疗保险</td>
                                      <td><?=$value['C20525']?></td>
                                   </tr>
                                   <tr  class="warning">
                                      <td>失业保险</td>
                                      <td><?=$value['C21194']?></td>
                                   </tr>
                                   <tr  class="danger">
                                      <td>公积金</td>
                                      <td><?=$value['GZ_MAIN203']?></td>
                                   </tr>
                                   <tr class="active">
                                      <td>应税工资</td>
                                      <td><?=$value['GZ_MAIN205']?></td>
                                   </tr>
                                   <tr class="success">
                                      <td>合计附加扣除</td>
                                      <td><?=$value['C21128']?></td>
                                   </tr>
                                   <tr class="warning">
                                      <td>本月应纳税</td>
                                      <td><?=$value['GZ_MAIN206']?></td>
                                   </tr>
                                   <tr  class="danger">
                                      <td>通讯补贴</td>
                                      <td><?=$value['C218']?></td>
                                   </tr>
                                   <tr  class="active">
                                      <td>其他扣款</td>
                                      <td><?=$value['C2126']?></td>
                                   </tr>
                                   <tr class="success">
                                      <td>爱心基金</td>
                                      <td><?=$value['C2154']?></td>
                                   </tr>
                                   <!--
                                   <tr  class="danger">
                                      <td>其他扣款</td>
                                      <td><?=$value['C21190']?></td>
                                   </tr>-->
                                   <tr  class="active">
                                      <td>实发工资</td>
                                      <td><?=$value['SFGZ']?></td>
                                   </tr>
                                </tbody>
                             </table>
                        <?php endif;?>
                    </div>
                  </div>
                </div>
                <?php endforeach; ?>
            </div>
    </fieldset>
    </form>
    </div>
    <script type="text/javascript">
      $('.goDate').datetimepicker({
        language: 'zh-CN',
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1
      });
      /*
      $('.backDate').datetimepicker({
        language: 'zh-CN',
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1
      });
      */
     function showsales(thisid){
         $("#"+thisid).click();
     }
    </script>
   </body>
</html>